-- premake5.lua
require("premake", ">=5.0.0-alpha16")
print("[CUSTOM] Target os: " .. os.target())
print("[CUSTOM] Target os: DUCK");
workspace "DUCK"
    location (".build/" .. _ACTION)
    language "C++"
    objdir ".temp/objs"
    platforms { "Win64"}
    configurations { "Debug", "Release" }
    architecture "x86_64"

    filter "configurations:Debug"
       defines { "DEBUG" }
       optimize "On"
       targetsuffix "_D"

    filter "configurations:Release"
       defines { "NDEBUG" }
       optimize "Full"

    filter {}


project "basic"
   kind "SharedLib"
   targetdir "lib/%{cfg.buildcfg}"
   defines { "DK_SDK_EXPORTS" }

   files { "include/basic/*.h", "src/**.h", "src/**.cpp" }
   includedirs { "include/" }

project "basic-test"
   kind "ConsoleApp"
   targetdir "lib/%{cfg.buildcfg}"

   files { "test/*.h", "test/*.cpp" }
   includedirs { "include/" , "external/googletest/include/" }
   if ( os.target() == "windows") then
       libdirs {"lib/%{cfg.buildcfg}" , "external/googletest/lib/windows-x64/" }
   else
       libdirs {"lib/%{cfg.buildcfg}" , "path-to-gtest" }
   end
   links { "basic", "gtest" }


function includeGLFW()
    includedirs "Libraries/GLFW/Include"
end
